<table class="form_table" cellpadding="0" cellspacing="0" style="border-top: 0px;">
  <caption style="border-bottom: 0px;">
    <%= "#{Grade.human_name}" %>
  </caption>
  <tr>
    <th><%= "#{Grade.human_attribute_name(:name)}" %></th>
    <th><%= "#{Grade.human_attribute_name(:abbreviation)}" %></th>
    <th><%= "#{Grade.human_attribute_name(:numerical_value)}" %></th>
    <th><%= "#{Grade.human_attribute_name(:ordering)}" %></th>
    <th><%= "#{Grade.human_attribute_name(:is_passing_grade)}" %></th>
    <th></th>
    <th></th>
    <th></th>
  </tr>
  <% @grades.each do |grade| %>
    <tr class="<%= cycle('odd', 'even') %>">
      <td class="<%= current_cycle %>"><%= grade.name %></td>
      <td class="<%= current_cycle %>"><%= grade.abbreviation %></td>
      <td class="<%= current_cycle %>" style="text-align: center;"><%= grade.numerical_value %></td>
      <td class="<%= current_cycle %>" style="text-align: center;"><%= grade.ordering %></td>
      <td class="<%= current_cycle %>" style="text-align: center;"><%= grade.is_passing_grade ? t(:true_yes) : t(:false_no) %></td>
      <td class="<%= current_cycle %>">[ <%= link_to t(:show), grade %> ]</td>
      <td class="<%= current_cycle %>">[ <%= link_to t(:edit), edit_grade_path(grade) %> ]</td>
      <td class="<%= current_cycle %>">[ <%= link_to t(:delete), grade, :confirm => t(:prompt_delete_x, :x => grade.name), :method => :delete %> ]</td>
    </tr>
  <% end %>
</table>